package com.snailhd.pay.wx.api.response;

import com.alibaba.fastjson.annotation.JSONField;
import com.snailhd.pay.wx.api.WxpayResponse;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.omg.PortableInterceptor.INACTIVE;

/**
 * @author hd
 * @description 查询订单返回
 * @date 2019-08-09 13:20
 */

@Getter
@Setter
@NoArgsConstructor
public class WxpayOrderQueryResponse extends WxpayResponse {


    /**用户标识*/
    @JSONField(name = "openid")
    private String openid;

    /**是否关注公众账号*/
    @JSONField(name = "is_subscribe")
    private String isSubscribe;

    /**交易类型*/
    @JSONField(name = "trade_type")
    private String tradeType;

    /**交易状态*/
    @JSONField(name = "trade_state")
    private String tradeState;

    /**付款银行*/
    @JSONField(name = "bank_type")
    private String bankType;

    /**标价金额*/
    @JSONField(name = "total_fee")
    private Integer totalFee;

    /**应结订单金额*/
    @JSONField(name = "settlement_total_fee")
    private Integer settlementTotalFee;

    /**标价币种*/
    @JSONField(name = "fee_type")
    private String feeType;

    /**现金支付金额*/
    @JSONField(name = "cash_fee")
    private Integer cashFee;

    /**现金支付币种*/
    @JSONField(name = "cash_fee_type")
    private String cashFeeType;

    /**代金券金额*/
    @JSONField(name = "coupon_fee")
    private Integer couponFee;

    /**代金券使用数量*/
    @JSONField(name = "coupon_count")
    private String couponCount;
//
//    /**代金券类型*/
//    @JSONField(name = "coupon_type_$n")
//    private String couponType_$n;
//
//    /**代金券ID*/
//    @JSONField(name = "coupon_id_$n")
//    private String couponId_$n;
//
//    /**单个代金券支付金额*/
//    @JSONField(name = "coupon_fee_$n")
//    private String couponFee_$n;

    /**微信支付订单号*/
    @JSONField(name = "transaction_id")
    private String transactionId;

    /**商户订单号*/
    @JSONField(name = "out_trade_no")
    private String outTradeNo;

    /**附加数据*/
    @JSONField(name = "attach")
    private String attach;

    /**支付完成时间*/
    @JSONField(name = "time_end")
    private String timeEnd;

    /**交易状态描述*/
    @JSONField(name = "trade_state_desc")
    private String tradeStateDesc;

}
